package com.qixin.part.controller;



import com.alibaba.fastjson.JSONObject;
import com.qixin.api.bean.PtMoneyInfo;
import com.qixin.api.bean.ResultPage;
import com.qixin.api.bean.VoPage;
import com.qixin.api.service.PtMoneyInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;
import javax.xml.transform.Result;

/**
 * <p>
 * 企业给用户分配资金回收资金记录表 前端控制器
 * </p>
 *
 * @author 吕正睿
 * @since 2018-10-29
 */
@Controller
@RequestMapping("/ptMoneyInfo")
public class PtMoneyInfoController {
	private Logger logger = LoggerFactory.getLogger(ComPtUserController.class);
	@Autowired
	PtMoneyInfoService ptMoneyInfoService;
	/*
	跳转界面
	 */
	@RequestMapping("/main.html")
	public String carftl() { return "company/money_detail"; }

	/**
	 * 查询列表
	 * @return
     */
	@RequestMapping("/list")
	@ResponseBody
	public ResultPage<PtMoneyInfo> list(VoPage voPage,HttpSession session,PtMoneyInfo ptMoneyInfo) {
		return ptMoneyInfoService.selectMyPage(voPage,session,ptMoneyInfo); }

}
